<html>
<head>
<title>Using response Impilict Object</title></head>
<center><h1>Using response implicit object</h1></center>
<p>Cookies already registered with this web application</p>
<TABLE width=300 border=1>
  <TR>
    <TH width=20%>Name</TH>
    <TH width=80%>Value</TH>
  </TR>
<%
  Cookie[] Cookies = request.getCookies();
if(Cookies!=null)
  {
    for (int i=0; i < Cookies.length; i++)
    {
      
%>
        <TR>
          <TD align=center><%= Cookies[i].getName() %></TD>
          <TD align=center><%= Cookies[i].getValue() %></TD>
        </TR>
<%
    }
  }
%>
</TABLE>

<P>Enter the cookie name and value to update our cookies list in above table</P>
<FORM  method="get" action="AddCookie.jsp">
<TABLE>
  <TR>
    <TD>Cookie Name</TD>
    <TD><INPUT type="text" name="CookieName"></TD>
  </TR>
  <TR>
    <TD>Value</TD>
    <TD><INPUT type="text" name="CookieValue"></TD>
  </TR>
  <TR>
    <TD align=right><INPUT type="submit" value="Submit" name="Submit"></TD>
  </TR>
</TABLE>
</FORM>

</BODY>
</HTML>
